package org.shan.lf.service;

import org.shan.lf.entity.UserAccount;
import org.shan.lf.pojo.form.DoctorRegisterForm;
import org.shan.lf.pojo.form.DoctorUpdateForm;

/**
 * Created by amanda.shan on 2019-07-27.
 */
public interface UserService {

    default UserAccount findUserAccount(String username){
        return null;
    }

    default UserAccount findUserAccount(String username, Integer identity){
        return null;
    }

    /**
     * 注册医生
     * @param doctorRegisterForm
     */
    default void addDoctorAccount(DoctorRegisterForm doctorRegisterForm){}

    /**
     * 获取邀请码
     * @return
     */
    default String getCode(){
        return "123456";
    }

    /**
     * 校验邀请码
     * @param code
     * @return
     */
    default boolean checkCode(String code){
        return false;
    };

    /**
     * 更新医生信息
     * @param updateForm
     */
    default void modifyDoctor(DoctorUpdateForm updateForm){}


    default void getDoctorInfo(){}
}
